<?php
/**
 * @author GhostWei
 * @date Sep 15, 2012
 */
class oauth_response_qzone extends oauth_api_response {
	
	public function getAvatar() {
		return $this->get('figureurl_2', resource_config_avatar::noMedia());
	}
	
	public function getNickname() {
		return $this->get('nickname');
	}
	
	public function getGender() {
		$gender = $this->get('gender');
		if($gender == '男') {
			$gender = 1;
		} elseif($gender == '女') {
			$gender = 2;
		} else {
			$gender = 0;
		}
		return $gender;
	}
	
	public function getUid() {
		return $this->get('nickname', '');
	}
	public function getTopics(){}
	public function getUser(){}
	public function getTweets(){}
	public function getTopicTweetsPaginator(){}
	public function getUserTweetsPaginator(){}
	
}
